<!--
 * @Author: C.
 * @Date: 2022-01-18 10:21:29
 * @LastEditTime: 2022-01-18 15:43:18
 * @Description: file content
-->
<template>
  <div>
    <jv-table :tableObj="tableObj"></jv-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      tableData: [
        {
          name: "张三",
          sex: 18
        },
        {
          name: "李四",
          sex: 19
        }
      ],
      tableObj: {}
    };
  },
  created() {
    this.tableObj = this.$JTable({
      tableSchema: [
        {
          prop: "name",
          label: "名称"
        },
        {
          prop: "sex",
          label: "性别"
        }
      ],
      title: "表格demo",
      data: this.tableData,
      operationCol: false
    });
  }
};
</script>
